Package jeresources.api
Interface IWorldGenRegistry
- All Known Implementing Classes:
WorldGenRegistryImpl
public interface IWorldGenRegistry
Use to register world generation and block drops
Note: This info wil only be used if there is no DIY data present
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, boolean silktouch, LootDrop... drops) voidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, LootDrop... drops) voidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, boolean silktouch, LootDrop... drops) Register aItemStackto be shown in the WorldGen Viewvoidregister(net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, LootDrop... drops) voidregisterDrops(net.minecraft.world.item.ItemStack block, LootDrop... drops) Register extra drops to existing blocks
-
Method Details
-
register
void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, boolean silktouch, LootDrop... drops) Register aItemStackto be shown in the WorldGen View- Parameters:
block- theBlockas anItemStackdistribution- theDistributionBaseuseDistributionHelpersto create itrestriction- anyRestrictionssilktouch- true if this block can only be harvested with silktouchdrops- the list of possibleLootDrops this has
-
register
void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, Restriction restriction, LootDrop... drops) -
register
void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, boolean silktouch, LootDrop... drops) -
register
void register(@Nonnull net.minecraft.world.item.ItemStack block, DistributionBase distribution, LootDrop... drops) -
registerDrops
Register extra drops to existing blocks- Parameters:
block- theBlockas anItemStackdrops- the list of possibleLootDrops that should be added
-